package com.cplh.sharding.demo.service;

import com.cplh.sharding.demo.entry.QzdHjHis;
import com.cplh.sharding.demo.mapper.QzdHjHisMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.transaction.Transactional;
import java.util.List;
import java.util.Map;

/**
 * @author: kangzhijin
 * @since: 2022/10/11
 * @version: 1.0
 * @description:
 **/
@Service
public class QzdHjService {

    @Resource
    private QzdHjHisMapper qzdHjHisMapper;

    @Transactional
    public int save(QzdHjHis hjHis) {
        return qzdHjHisMapper.saveHjHis(hjHis) ;
    }

    public List<QzdHjHis> queryOrdersMapperNormal(Map<String, Object> params) {
        return qzdHjHisMapper.queryHjHis(params) ;
    }

    public List<QzdHjHis> queryOrdersMapperNormal1(Map<String, Object> params) {
        return qzdHjHisMapper.queryHjHis1(params) ;
    }

    public List<QzdHjHis> queryOrdersMapperNormal2(Map<String, Object> params) {
        return qzdHjHisMapper.queryHjHis2(params) ;
    }

    public List<QzdHjHis> queryOrdersMapperNormal3(QzdHjHis params) {
        return qzdHjHisMapper.queryHjHis3(params, "abc") ;
    }



}
